#set($title = "搜索结果")
#parse("/home/parseHeader.html")
#parse("/home/_headerSearch.html")
<div class="mainbox topiclist">
	<h1>搜索结果</h1>
        <table cellspacing="0" cellpadding="0">
            <thead class="category">
                <tr>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        主题
                    </td>
                    <td class="author">
                        作者
                    </td>
                    <td class="nums">
                        回复/查看
                    </td>
                    <td class="lastpost">
                        所属板块
                    </td>
                </tr>
            </thead>
            <tbody>
            #if ($null.isNull($topics) || $topics.size()==0)
		     <tr><td class="folder">&nbsp;</td><td colspan="4">$domain.info("searchNoResult")</td></tr>
            #else
                #foreach($topic in $topics)
                <tr>
                    <td class="folder">
                        <a title="新窗口打开" href='/topics/$encrypt.encrypt("$topic.topicid")' target="_blank">#folderType($topic.createtime,$topic.replies,$topic.issolved)</a>
                    </td>
                    <td>
						<a href='/topics/$encrypt.encrypt("$topic.topicid")'>
                            <font color="$display.alt($topic.highcolor,'black')">
                                $topic.title
                            </font>
                        </a>
						#if($auth.isNewMember("$topic.userid")=="true")
						<img src="/resource/new_member.gif" alt="新人贴" title="新人贴"> 
						#end
                        #if($topic.attachicon=="A")
                        <label class="attach">
                            &nbsp;
                        </label>
                        #elseif($topic.attachicon=="I")
                        <label class="pic">
                            (&nbsp;图&nbsp;)&nbsp;
                        </label>
                        #else
                        <label>
                            $!topic.attachicon
                        </label>
                        #end
						#if($topic.topscope=="3")
						<label><img alt="本版置顶" src="/style/images/top_3.gif" align="absmiddle">&nbsp;</label>
						#elseif($topic.topscope=="2")
						<label><img alt="分区置顶" src="/style/images/top_2.gif" align="absmiddle">&nbsp;</label>
						#elseif($topic.topscope=="1")
						<label><img alt="全局置顶" src="/style/images/top_1.gif" align="absmiddle">&nbsp;</label>
						#else
						<label></label>
						#end
						#if($topic.isdigest=="T")
						<label><img alt="精华" src="/style/images/digest.gif" align="absmiddle">&nbsp;</label>
						#end
                    </td>
                    <td class="author">
                        <cite>
                            <a href="/members/$topic.userid">$topic.nickname</a>
                        </cite>
                        $date.format("yyyy-MM-dd HH:mm:ss",$topic.createtime)
                    </td>
                    <td class="nums">
                        <span>$topic.replies</span>
                        / $topic.visits
                    </td>
                    <td class="lastpost">
                        <cite>
                          <a href='/forum/boards/$encrypt.encrypt("$topic.boardid")'>$!boardTool.getBoardName("$topic.boardid")</a>
                        </cite>
                    </td>
                </tr>
                #end
				#end
            </tbody>
        </table>	
</div>
 #if($pageCount==1)
 #else
 #parse("/board/_pager.html")
 #end
<script type="text/javascript">
    var pagesCount = $pageCount;
	var pageIndex=$pageIndex;
</script>
#includeJqueryUI
#includeJs(["jquery.jqpagination.min","board/board"])
#includeCss(["jqpagination"])
